//
//  DKRegisterUserModel.m
//  DanKU
//
//  Created by 吴斌 on 2023/10/13.
//

#import "DKRegisterUserModel.h"

@implementation DKRegisterUserModel
+ (NSDictionary *)mj_replacedKeyFromPropertyName{
    return @{@"registerStatus":@"register"};
}
//归档调用
- (void)encodeWithCoder:(NSCoder *)encoder{
    [encoder encodeObject:self.token forKey:@"token"];
    [encoder encodeObject:self.upPasswordCertificate forKey:@"upPasswordCertificate"];
    [encoder encodeObject:self.userId forKey:@"userId"];
    [encoder encodeObject:self.phone forKey:@"phone"];
    [encoder encodeObject:self.registerStatus forKey:@"registerStatus"];
}

//解档调用
-(instancetype)initWithCoder:(NSCoder *)coder{
    if (self = [super init]) {
        self.token = [coder decodeObjectForKey:@"token"];
        self.upPasswordCertificate = [coder decodeObjectForKey:@"upPasswordCertificate"];
        self.userId = [coder decodeObjectForKey:@"userId"];
        self.phone = [coder decodeObjectForKey:@"phone"];
        self.registerStatus = [coder decodeObjectForKey:@"registerStatus"];

    }
    return self;
}
+ (BOOL)supportsSecureCoding {
    return YES;
}
@end
